home *** CD-ROM | disk | FTP | other *** search
Wrap
10 rem*video recording planner* 20 rem*written by r.r.davey nov 1989* 30 open15,8,15,"i":close15 40 rem *********** 50 rem * colours * 60 rem *********** 70 bd=53280:bk=53281 80 og$=chr$(27)+chr$(114)+chr$(5) 90 gr$=chr$(27)+chr$(114)+chr$(6) 100 bk$=chr$(27)+chr$(114)+chr$(0) 110 rem ***************** 120 rem * record format * 130 rem ***************** 140 l1$="[221][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][221][183][183][183][183][183][183][183][221][183][221][183][221][183][221]" 150 l2$="[183][221][183][221][183][221][183][221][183][221][183][221][183][221][183][221][183][221][183][221][183][221][183][221][183][221]" 160 l3$="[221][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][221][164][164][164][164][164][164][164][221][164][221][164][221][164][221]" 170 l4$="[164][221][164][221][164][221][164][221][164][221][164][221][164][221][164][221][164][221][164][221][164][221][164][221][164][221]" 180 rem ****************** 190 rem * planner format * 200 rem ****************** 210 l5$="[221][163][163][163][163][163][163][221][163][163][163][163][221][163][163][163][163][163][221][163][163][163][163][163][163][221][163][163][163][163][163][221][163][163][163][163][163][163][163][221]" 220 l6$="[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][221]" 230 l7$="[221][164][164][164][164][164][164][221][164][164][164][164][221][164][164][164][164][164][221][164][164][164][164][164][164][221][164][164][164][164][164][221][164][164][164][164][164][164][164][221]" 240 l8$="[164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][221]" 250 goto550 260 rem **************** 270 rem * audio signal * 280 rem **************** 290 sa=54272 300 forl=0to24:pokesa+l,0:next 310 pokesa+1,50 320 pokesa+5,11 330 pokesa+15,30 340 pokesa+24,10 350 l=1:pokesa+4,21 360 fort=1to1000:next:pokesa+4,20 370 fort=1to50:next 380 return 390 rem ***************** 400 rem * reset printer * 410 rem ***************** 420 printchr$(147) 430 poke214,6:printchr$(145):poke211,7 440 print"if nlq type style is used" 450 poke214,9:printchr$(145):poke211,13 460 print"reset printer" 470 poke214,15:printchr$(145):poke211,8 480 print"press 'space' when ready";xx$ 490 getxx$:ifxx$=""then490 500 ifxx$<>chr$(32)thengoto490 510 return 520 rem ************* 530 rem * main menu * 540 rem ************* 550 pokebd,7:pokebk,6:printchr$(147):poke214,8:printchr$(145) 560 poke211,7:printchr$(158)"1. select type of printer" 570 poke214,10:printchr$(145):poke211,7 580 printchr$(30)"2. print planner sheet" 590 poke214,12:printchr$(145):poke211,7 600 printchr$(150)"3. print record sheet" 610 poke214,14:printchr$(145):poke211,7 620 printchr$(154)"4. exit" 630 print" ensure printer is switched 'on' " 640 print"[145] and paper and ribbon in place [146]" 650 poke214,6:printchr$(145):poke211,3 660 print"[155][166][166][166][166][166][166][166][166][166][166][166] main menu [146][155][166][166][166][166][166][166][166][166][166][166][166][166]" 670 forl=1to9:printtab(3)"[166]"spc(32)"[166]":next 680 poke214,16:printchr$(145):poke211,3 690 print"[155][166][166][166][166][166][166][166][166][166] select option [146][155][166][166][166][166][166][166][166][166][166]" 700 getk$:ifk$=""then700 710 k=val(k$) 720 ifk<1ork>4thengosub290:goto700 730 onkgoto770,1410,1010,1680 740 rem ***************** 750 rem * printer types * 760 rem ***************** 770 pokebd,5:pokebk,6:printchr$(147):poke214,6:printchr$(145):poke211,13 780 print"[152]c[146]ommodore." 790 poke214,8:printchr$(145):poke211,13 800 print"[156]s[146]tar." 810 poke214,10:printchr$(145):poke211,13 820 print"star col[146]lor" 830 poke214,12:printchr$(145):poke211,13 840 print"[158]e[146]xit." 850 poke214,3:printchr$(145):poke211,7 860 print"[155][166][166][166][166][166][166][166] printer [146][155][166][166][166][166][166][166][166][166]" 870 forl=1to11:printtab(7)"[166]"spc(24)"[166]":next 880 poke214,14:printchr$(145):poke211,7 890 print"[155][166][166][166][166][166] select type [146][155][166][166][166][166][166]" 900 poke214,18:printchr$(145):poke211,10 910 printchr$(5)"select (c s l e)";:inputa$ 920 pt=0 930 fori=1to4 940 ifa$=mid$("csle",i,1)thenpt=i 950 nexti 960 ifpt<1orpt>4thengosub290:goto900 970 onptgoto550,550,550,1680 980 rem **************** 990 rem * record sheet * 1000 rem**************** 1010 open1,4 1020 print#1,chr$(27)+chr$(99)+chr$(2) 1030 print#1,chr$(14) 1040 ifa$=chr$(76)thengoto1060 1050 goto1080 1060 print#1.og$ 1070 print#1," programme record":print#1,bk$:print#1:goto1090 1080 print#1," programme record":print#1 1090 print#1,chr$(15) 1100 print#1," programme name counter programme length" 1110 print#1," and type on/off 0 1 2"; 1120 print#1," 3 4" 1130 forg=1to9 1140 print#1,l1$+l2$ 1150 print#1,l3$+l4$ 1160 nextg 1170 ifa$=chr$(67)then1190 1180 ifa$=chr$(83)ora$=chr$(76)then1200 1190 print#1,chr$(14):goto1210 1200 print#1,chr$(27);chr$(104);chr$(1) 1210 fornu=1to12 1220 print#1,nu;:next 1230 ifa$=chr$(67)then1250 1240 goto1260 1250 print#1,chr$(15):goto1270 1260 print#1,chr$(27);chr$(64) 1270 close1 1280 x$=" " 1290 printchr$(147) 1300 poke214,6:printchr$(145):poke211,9 1310 print"another copy (y/n)";x$ 1320 getx$:ifx$=""then1320 1330 ifx$<>chr$(89)andx$<>chr$(78)thengosub290:goto1280 1340 ifx$=chr$(78)thengoto30 1350 ifa$=chr$(76)ora$=chr$(83)thengoto1370 1360 goto1010 1370 ifx$=chr$(89)thengosub420:goto1010 1380 rem ***************** 1390 rem * planner sheet * 1400 rem ***************** 1410 open1,4 1420 print#1,chr$(27)+chr$(99)+chr$(2) 1430 print#1,chr$(14) 1440 ifa$=chr$(76)thengoto1460 1450 goto1480 1460 print#1,gr$ 1470 print#1," programme planner":print#1,bk$:print#1:goto1490 1480 print#1," programme planner":print#1 1490 print#1,chr$(15) 1500 print#1," date ch am/pm on am/pm off programme name/"; 1510 print#1,"synopsis/duration" 1520 forg=1to10 1530 print#1,l5$+l6$ 1540 print#1,l7$+l8$ 1550 nextg 1560 close1 1570 x$=" " 1580 printchr$(147) 1590 poke214,6:printchr$(145):poke211,9 1600 print"another copy (y/n)";x$ 1610 getx$:ifx$=""then1610 1620 ifx$<>chr$(89)andx$<>chr$(78)thengosub290:goto1570 1630 ifx$=chr$(78)thengoto30 1640 goto1410 1650 rem **************** 1660 rem * exit routine * 1670 rem **************** 1680 printchr$(147)chr$(154) 1690 poke214,6:printchr$(145):poke211,7 1700 input"press (q)uit or (m)enu ";r$ 1710 ifr$<>chr$(81)andr$<>chr$(77)thengosub290:goto1680 1720 ifr$=chr$(77)then550 1730 printchr$(147)chr$(155) 1740 poke214,9:printchr$(145):poke211,7 1750 input"are you sure-quit? (y/n) ";s$ 1760 ifs$<>chr$(89)ands$<>chr$(78)thengosub290:goto1740 1770 ifs$=chr$(89)thensys64738 1780 ifs$=chr$(78)thengoto550 1790 end